package leetcode.code017;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution017 implements IDebug {

	public abstract List<String> letterCombinations(String digits);


	private void debug(String str1, String str2) {
		List<String> result = this.letterCombinations(str1);
		List<String> expect = HelpDebug.str2liststr(str2);
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug1() {
		String str1 = "23";
		String str2 = "[\"ad\",\"ae\",\"af\",\"bd\",\"be\",\"bf\",\"cd\",\"ce\",\"cf\"]";
		this.debug(str1,str2);
	}


	@Override
	public void debug2() {
		String str1 = "";
		String str2 = "[]";
		this.debug(str1,str2);
	}

	@Override
	public void debug3() {
		String str1 = "2";
		String str2 = "[\"a\",\"b\",\"c\"]";
		this.debug(str1,str2);
	}

	@Override
	public void debug4() {

	}

}
